﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace CRMSalesManagement.Master
{
    public partial class FrontPageSite : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Session["searchType"] != null)
                {
                    this.ddlClass.Text = Session["searchType"].ToString();
                }
                if (Session["searchContent"] != null)
                {
                    this.txtContent.Text=Session["searchContent"].ToString();
                }
            }
        }
        protected void btnSearch_Click(object sender, EventArgs e)
        {
            Session["searchType"] = this.ddlClass.Text.Trim();
            Session["searchContent"] = this.txtContent.Text.Trim();
            Response.Redirect("/FrontPageShow/ProductInforList.aspx");           
        }
    }
}